package com.burst.reptile.modular.zp.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 聊天列表
 * </p>
 *
 * @author wujin
 * @since 2020-09-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("zp_chat_list")
public class ZpChatList implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "lid", type = IdType.ASSIGN_ID)
    private String lid;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 对方用户id
     */
    private Long anotherId;

    /**
     * 是否在线
     */
    private String userOnline;

    /**
     * 未读数
     */
    private Integer unread;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}
